<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>取车信息登记</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/static/layui/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" method="post" id="applyForm">
    <div class="layui-form-item">
        <label class="layui-form-label">车牌号码:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.car.carplate}" disabled>
        </div>
        <label class="layui-form-label">修理厂:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.btype.btypename}" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">送修时间:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="<fmt:formatDate value="${repairRecord.repairstarttime}"  type="both" />" disabled>
        </div>
        <label class="layui-form-label">预计取车时间:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="<fmt:formatDate value="${repairRecord.repairplanendtime}"  type="both" />" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">送修原因:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.repairreason}" disabled/>
        </div>
        <label class="layui-form-label">送修备注:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.remarkto}" disabled>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">经办人:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.driver.dirvername}" disabled/>
        </div>
        <label class="layui-form-label">维修类别:</label>
        <div class="layui-input-inline">
            <input type="text"  autocomplete="off" class="layui-input" value="${repairRecord.repair.rtype}" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">取车时间:</label>
        <div class="layui-input-inline">
            <input type="text" autocomplete="off" class="layui-input" value="<fmt:formatDate value="${repairRecord.repairendtime}"  type="both" />" disabled>
        </div>
        <label class="layui-form-label">花费金额:</label>
        <div class="layui-input-inline">
            <input type="text" autocomplete="off" class="layui-input" value="${repairRecord.repairprice}" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">维修项目:</label>
        <div class="layui-input-inline">
            <input type="text" autocomplete="off" class="layui-input" value="${repairRecord.repairitems}" disabled>
        </div>
        <label class="layui-form-label">取车备注:</label>
        <div class="layui-input-inline">
            <input type="text" autocomplete="off" class="layui-input" value="${repairRecord.remarkback}" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="applyAdd" id="closeBtn" >关闭</button>
        </div>
    </div>

</form>
<script type="text/javascript" src="<%=request.getContextPath()%>/static/layui/layui/layui.js"></script>
<script>
    layui.use(['form','layer','laydate','table','laytpl','upload'],function(){
        var form = layui.form,
            layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery,
            laydate = layui.laydate,
            laytpl = layui.laytpl,
            table = layui.table,
            upload=layui.upload;

        //关闭按钮的实现
        $("#closeBtn").click(function () {
            window.parent.location.reload();
        })
    });
</script>
</body>
</html>